package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 店铺余额明细
 * @author xiexuxin
 * @date 2024-01-03
 */
@Data
@TableName(value ="yx_balance_detail")
@ApiModel(value = "店铺余额明细 " , description="yx_balance_detail")
public class YxBalanceDetailEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "balance_detail_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键")
    private Long balanceDetailId;

    @TableField(value="order_id")
    @ApiModelProperty(value="订单ID")
    private Long orderId;

    @TableField(value="withdraw_deposit_id")
    @ApiModelProperty(value="提现记录ID")
    private Long withdrawDepositId;

    @TableField(value="shop_id")
    @ApiModelProperty(value="店铺ID")
    private Long shopId;

    @TableField(value="shop_name")
    @ApiModelProperty(value="店铺名称")
    private String shopName;

    @TableField(value="merchant_id")
    @ApiModelProperty(value="商户ID")
    private Long merchantId;

    @TableField(value="merchant_name")
    @ApiModelProperty(value="商户名称")
    private String merchantName;

    @TableField(value="type")
    @ApiModelProperty(value="类型，0表示支出，1表示收入")
    private Integer type;

    @TableField(value="detail")
    @ApiModelProperty(value="明细")
    private String detail;

    @TableField(value="amount")
    @ApiModelProperty(value="金额")
    private String amount;

    @TableField(value="transaction_num")
    @ApiModelProperty(value="交易单号")
    private String transactionNum;

    @TableField(value="trading_time")
    @ApiModelProperty(value="交易时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date tradingTime;

    @TableField(value="status")
    @ApiModelProperty(value="状态，0表示成功，1表示失败")
    private Integer status;

    @TableField(value="remark")
    @ApiModelProperty(value="备注")
    private String remark;

}
